<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    


<script>

    // 变量赋值
    // var num = 100
        var num = -100
    // var num = 0
    // 判断 
        if(num%1 ==0 && num>0){
        console.log(num+'大于零');
    }else if(num%1 ==0 && num<0){
        console.log(num+'小于零');
    }else if(num == 0){
        console.log(num + '等于零');
        
    }
</script>
</body>
</html>